package com.example.wiki3.entity;

public class Book_ContentTable {
    private long id;
    private long ebookId;
    private long parent;
    private String name;
    private int sort;
    private int viewCount;
    private int voteCount;
    private  String content;

    public Book_ContentTable(long id, long ebookId, long parent, String name, int sort, int viewCount, int voteCount, String content) {
        this.id = id;
        this.ebookId = ebookId;
        this.parent = parent;
        this.name = name;
        this.sort = sort;
        this.viewCount = viewCount;
        this.voteCount = voteCount;
        this.content = content;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getEbookId() {
        return ebookId;
    }

    public void setEbookId(long ebookId) {
        this.ebookId = ebookId;
    }

    public long getParent() {
        return parent;
    }

    public void setParent(long parent) {
        this.parent = parent;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getViewCount() {
        return viewCount;
    }

    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }

    public int getVoteCount() {
        return voteCount;
    }

    public void setVoteCount(int voteCount) {
        this.voteCount = voteCount;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Book_ContentTable{" +
                "id=" + id +
                ", ebookId=" + ebookId +
                ", parent=" + parent +
                ", name='" + name + '\'' +
                ", sort=" + sort +
                ", viewCount=" + viewCount +
                ", voteCount=" + voteCount +
                ", content='" + content + '\'' +
                '}';
    }
}